﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using _8_19_Homework.Models;

namespace _8_19_Homework.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult View1()
        {
            View1VM v1 = new View1VM();
            Bear b = new Bear("Smokey the bear", 4, "brown");
            Cat c = new Cat("mittens the cat", 4, "orange");
            v1.animal.Add(b);
            v1.animal.Add(c);
            return View(v1);
        }
        public ActionResult View2()
        {
            View2VM v2 = new View2VM();
            Bear b = new Bear("Smokey the bear", 4, "brown");
            Dog d = new Dog("Lassie the dog", 4, "gold");
            v2.animal.Add(b);
            v2.animal.Add(d);
            return View(v2);
        }
        public ActionResult View3()
        {
            View3VM v3 = new View3VM();
            Bear b = new Bear("Smokey the bear", 4, "brown");
            Emu e = new Emu("breakfast the emu", 2, "brown");
            v3.animal.Add(b);
            v3.animal.Add(e);
            return View(v3);
        }
        public ActionResult View4()
        {
            View4VM v4 = new View4VM();
            Cat c = new Cat("mittens the cat", 4, "orange");
            Dog d = new Dog("Lassie the dog", 4, "gold");
            v4.animal.Add(c);
            v4.animal.Add(d);
            return View(v4);
        }
        public ActionResult View5()
        {
            View5VM v5 = new View5VM();
            Cat c = new Cat("mittens the cat", 4, "orange");
            Emu e = new Emu("breakfast the emu", 2, "brown");
            v5.animal.Add(c);
            v5.animal.Add(e);
            return View(v5);
        }
        public ActionResult View6()
        {
            View6VM v6 = new View6VM();
            Dog d = new Dog("Lassie the dog", 4, "gold");
            Emu e = new Emu("breakfast the emu", 2, "brown");
            v6.animal.Add(d);
            v6.animal.Add(e);
            return View(v6);
        }
        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}